<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>找回密码 - {:configure('website.webName')}</title>
<meta http-equiv="X-UA-Compatible" content="chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="stylesheet" href="//cdn.bootcdn.net/ajax/libs/layui/2.5.7/css/layui.css">
<style type="text/css">
.layui-input, .layui-textarea {
    border-radius: .25rem;
}
.layui-input:hover,.layui-textarea:hover{border-color:#5FB878!important}.layui-input:focus,.layui-textarea:focus{border-color:#007bff!important;box-shadow:0 0 0 .2rem rgba(0,123,255,.1);}
</style>  
</head>

<body style="background-color: #f2f2f2;">
<div class="layui-container"> 
<div class="layui-row" style="padding: 10px;">
  
  <div class="layui-card">
    <div class="layui-card-header">找回密码</div>
    <div class="layui-card-body">
{if request()->action(1) eq 'index'}
    	<blockquote class="layui-elem-quote layui-quote-nm">
            请您填写需要找回密码的验证方式
          </blockquote>
          
       <form class="layui-form" action="{:url('ucentre/forget/send')}" method="post">

            <div class="layui-form-item">
              <label class="layui-form-label">验证方式</label>
              <div class="layui-input-inline">
                <input type="text" name="account" value="" placeholder="邮箱" lay-verify="required" autocomplete="off" class="layui-input">
              </div>
              <div class="layui-form-mid layui-word-aux"></div>
            </div>

            <div class="layui-form-item">
              <div class="layui-input-block">
                <button class="layui-btn" lay-submit lay-filter="J_submit">验证</button>
              </div>
            </div>
          </form>
{/if}

{if request()->action(1) eq 'send'}
<div style="color: #598403;padding: 10px;font-size: 18px;">我们已经发送邮件至您的邮箱，请在24小时内通过邮件内的链接继续设置新的密码。</div>
<blockquote class="layui-elem-quote layui-quote-nm">
提示：<br>
若您长时间未收到邮件，请检查您的垃圾箱或广告箱，邮件有可能被误认为垃圾或广告邮件。<br>
如果您一直未收到邮件，请重新尝试<a href="{:url('ucentre/forget/index')}">找回密码。</a><br>
如果您连续多次申请找回密码，请以最新收到的邮件为准！
</blockquote>
{/if}

{if request()->action(1) eq 'resetpwd'}
    	<blockquote class="layui-elem-quote layui-quote-nm">
            验证通过，请设置新密码。
          </blockquote>
       <form class="layui-form" action="" method="post">

            <div class="layui-form-item">
              <label class="layui-form-label">用户名</label>
              <div class="layui-input-inline">
                <input type="text" name="username" value="{$username}" autocomplete="off" class="layui-input layui-disabled" readonly>
              </div>
            </div>

            <div class="layui-form-item">
              <label class="layui-form-label">新密码</label>
              <div class="layui-input-inline">
                <input type="password" name="password" value="" lay-verify="required" autocomplete="off" class="layui-input">
              </div>
              <div class="layui-form-mid layui-word-aux"></div>
            </div>

            <div class="layui-form-item">
              <label class="layui-form-label">确认密码</label>
              <div class="layui-input-inline">
                <input type="password" name="repassword" value="" lay-verify="required" autocomplete="off" class="layui-input">
              </div>
              <div class="layui-form-mid layui-word-aux"></div>
            </div>
            
            <div class="layui-form-item">
              <div class="layui-input-block">
                <button class="layui-btn" lay-submit lay-filter="J_submit">完成</button>
              </div>
            </div>
          </form>
{/if}
    </div>
  </div>
  <p><a href="/" >返回首页</a> © {:date('Y',time())} <a href="https://www.wendasns.com/" target="_blank">Wendasns</a></p>
</div>
</div>

<script src="/static/wendasns/layui.js"></script>
</body>
</html>